home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-10-03 | 1.3 KB | 38 lines | [TEXT/GEOL] |
- Item 0670541 3-Oct-89 11:58
-
- From: BIANCHI1 Bianchi, Curt
-
- To: CH0068 CH DEV Hamilton, Bonaduz
-
- cc: MACAPP.TECH$ MACAPP Tech
-
- Sub: Re: Memory management
-
- In response to your memory management question: MacApp allocates a handle to
- reserve the space for the permanent reserve. MemSpaceIsLow returns false as
- long as that handle is allocated. When the handle is disposed, because the
- memory was needed to satisfy a permanent request, then MemSpaceIsLow returns
- true. The result of FreeMem does not take into account the space reserved by
- the permanent reserve handle. Hope that helps.
-
- Curt Bianchi
- Apple Computer
-
- --------------------------------------------------------
-
- I have an application which reads large chunks of data (ca. 45k) from a file
- and displays them in tabular form.
- I have set the low space reserve in my mem! resource to 50*1024 bytes,
- but MemSpaceIsLow continues to return FALSE even if the debugger says there
- are
- only 4k bytes of (permanent) Freemem left. Why ?
-
- Here my mem! resource:
-
- resource 'mem!'(256,purgeable){
- 0, /* add to temp. reserve */
- 50*1024, /* add to permanent reserve */
- 0 /* add to stack space */
- };
-
-